package com.ad.pet.ui;

import android.content.Context;
import android.util.AttributeSet;
import android.webkit.WebView;

/**
 * Created by SEELE on 2018/11/1.
 */

public class BottomWebView extends WebView {

    public BottomWebView(Context context, AttributeSet attrs) {
        super(context, attrs);
        //设置WebViewClient

    }


    //调用此方法可滚动到底部
    public void scrollToBottom() {
        scrollTo(0, computeVerticalScrollRange());
    }

    public int maxScorll() {
        return computeVerticalScrollRange();
    }
}
